package com.wxq.blog.service;

import com.wxq.blog.pojo.SysUser;
import com.wxq.blog.vo.Result;
import com.wxq.blog.vo.params.LoginParam;
import com.wxq.blog.vo.params.LoginParams;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface LoginService {
    /**
     * 登录请求
     * */
    Result login(LoginParams loginParams);
    /*
     * token校验
     * */
    SysUser checkToken(String token);
    /*
     * 退出
     */
    Result logout(String token);
    /*
     *登录请求
     */
    Result register(LoginParam loginParam);
}
